<?php
include('../incsession.php');
mysql_select_db($DB_dbname, $orcp_con);
mysql_query("SET NAMES 'utf8'", $orcp_con);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>sample page</title>
<link rel="stylesheet" href="style.css" type="text/css" media="screen">
</head>

<body onLoad="TimeCountDown()">
<div id="wrapper">
	<div id="header">
		<div id="logo"></div>
		<div id="menu">
        <?php
			include("menu.php");
		?>
       
		</div>
	</div>
	<div class="clearer"></div>
	<div class="edge-top"></div>

	<div id="main">

		<div id="title">測驗結束<font size=4><br>最後，你可以下載文件複習剛才的文章，放入單字車的單字和大綱練習的答案<br>
請按右鍵點選另存新檔</font></div>
<hr/><br><br>

<!-- 內文開始 !-->

<?php 
$query = "SELECT vocab FROM video WHERE topicid=".$_SESSION['topic']." AND level=".$_SESSION['level'];
$result = mysql_query($query,$orcp_con);
$row = mysql_fetch_array($result);
//echo "<a href='finish.php' onClick='window.open(\"./vocab/".$row['vocab']."\")'>單字</a><br>";
echo "<a href=''>文章</a><br><br>";
echo "<a href='./vocab/".$row['vocab']."'>單字</a><br><br>";
echo "<a href='".$_POST["filename"]."' target='_blank'>大綱練習題目+答案</a><br><br>";
?>
<form action='../index.php' method='POST'>
<div class="btn_right"><input type="submit" name = "next" value = "回到選單"></div>
</form>
<!-- 內文結束 !-->

	</div>
    <div class="edge-bottom"></div>
    <div id="footer"><?php  include("footer.php"); ?></div>
</div>



</body>
</html>